Skip to content

feat(sidebar): compact rows, a one-line foot and a clearer tooltip - #1281

Open
omartelo wants to merge 2 commits into
mainfrom
feat/compact-sidebar
Open

omartelo wants to merge 2 commits into
mainfrom
feat/compact-sidebar

Conversation

@omartelo

@omartelo omartelo commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

What changes

The sidebar fits more sessions.

  • Every row is 28dp instead of 34: sessions, files, browser, folder headers, services and the rail.
  • A row no longer writes its branch. A git-branch glyph marks a session in a worktree of its own or off the base branch, and the name keeps the width.
  • Folder and Pinned headers share one form (glyph, name, count), and their ⋯ shows under the pointer, as on a row.
  • The foot is one line: the account, and the services as one glyph at its end, green while any runs and red once one failed. It opens the services in a panel, with New service, Start all and Stop all. The SERVICES block is gone, and a layout's sidebar has the same foot.
  • The rail has New and the filter in its footer; the filter opens the sidebar with the keyboard in its field.

The session tooltip says where the session works. Name, status and age on the first line; then the branch with its changes, the worktree's folder, the pull request and how far behind the base; then conflicts, rare notes and the model. The running command and the full path are out. A path still shows whole when the session left its checkout.

Fix: a session opened in a colored folder takes the folder's color. A folder wears the color its cards share, and a session born in one had none, so it stayed plain and took the color off the whole folder.

  • The store now gives a session the folder's color in the insert, so New session here and forks get it too.
  • A child drawn in her mother's folder wears that folder's color unless she has her own.
  • Pinned cards, which are drawn outside the folder, no longer count when its color is read.

Copy

  • The header button: "New Session" is now "New". Two tour steps that name it follow.
  • New, in the tooltip only: "Working", "Done", "Idle". Each is the status the row shows only as a glyph.
  • The worktrees tour described a branch on a header that no longer exists; it now describes the branch glyph.
  • Removed: the services header's counts and its "Add".

All seven locales.

Tests whose contract changed

  • TestTheTooltipKeepsTheBranchWholeOnItsLine: the changes moved from the pull request's line to the branch's.
  • TestTheServicesHeaderOffersWhatTheTallyAllows is now TestTheServicesPanelOffersWhatTheTallyAllows: the actions are in the panel, not in a header's menu. The allServicesOp cases in TestTallyCountsUpAndFailed moved there.
  • TestTheRailServicesBadgeCountsOnlyAProjectWithServices is replaced by TestTheServicesGlyphWearsTheirState: the glyph's ink took the count's place.
  • TestToolLine left with toolLine: nothing draws the running tool anymore.
  • TestCardIsOneLineInEveryState and TestTheAccountPanelIsAsWideAsTheSidebarsRow only follow changed signatures.

Test plan

  • The four color tests failed before the fix and pass after it
  • Backend and native/ gates: gofmt, go vet, go fix -diff, go test
  • Headless shots of the open sidebar, services panel, filter, rail and tooltips, in dark; sidebar and tooltip in light

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant